<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>11 数组语法</title>
		<script src="lib/vue.js"></script>
		<style type="text/css">
			.active{
				color:#ADFF2F;
			}
			.bg{
				background:#ddd;
			}
		</style>
	</head>
	<body>
		<div id="app-11" v-bind:class="[activeClass,errorClass]">
			数组语法
		</div>
	</body>
	<script type="text/javascript">
		var app11=new Vue({
			el:"#app-11",
			data:{
				activeClass:'active',
				errorClass:'bg'
			}
		});
	</script>
</html>
